<?php

/*
Plugin Name: Canvas
Plugin URI: http://freshpursuits.com/canvas/
Description: Use a drag-and-drop interface to control your blog layout.
Author: Fresh Pursuits
Author URI: http://www.freshpursuits.com/
Version: 1.2
*/ 

/*

For more information about the Canvas project, visit the website
at http://www.freshpursuits.com/canvas/

For technical support, visit http://forums.freshpursuits.com/ and
http://support.freshpursuits.com/

*/

require_once('canvas-core.php');

register_activation_hook(__FILE__, 'canvas_install');
register_activation_hook(__FILE__, 'ink_clean_install');
register_activation_hook(__FILE__, 'canvas_check_theme');

add_action('activate_Canvas/canvas.php','canvas_install');
add_action('activate_Canvas/canvas.php','ink_clean_install');
add_action('activate_Canvas/canvas.php','canvas_check_theme');

add_action('admin_menu', 'add_canvas_pages');
add_action('admin_head', 'canvas_head');
add_action('switch_theme', 'canvas_check_theme');

add_action('admin_head', 'add_ink_js');
add_action('wp_head', 'output_ink');
add_action('wp_head', 'ink_highlight');

add_action('init', 'canvas_include_plugins');

add_action('template_redirect', 'canvas_interrupt');
add_action('wp_end', 'canvas_css_based_insert');

function add_canvas_pages() { 
	add_submenu_page('themes.php', 'Canvas', 'Canvas', 8, basename(__FILE__), 'canvas_admin');
}

?>